<template>
  <div class="talk">
    <span @click="$router.go(-1)">&lt;</span>
    <textarea name="" id="" cols="30" rows="10" v-model="context" ></textarea>
    <button @click="updatedata">确认修改</button>
   
  </div>
</template>

<script>
  import {Toast} from 'vant'
export default {
  data(){
    return{
context:''
    }
  },
methods:{
  updatedata(){
    this.$store.dispatch('UPDATE_DATA',{context:this.context}),
    Toast.success('修改成功')
 
  },
  
   
  }
      
    }
 
  
 

</script>

<style lang="scss" scoped>
textarea{
    width: 100%;
    height: 3rem;
    background-color: rgba(255, 192, 203, 0.158);
    resize: none;
}

</style>